package com.foreknow.practice.demo11.view;


import com.foreknow.practice.demo11.service.UserService;
import com.foreknow.practice.demo11.service.impl.UserServiceImpl;

public class Test {
    public static void main(String[] args) {
        //调用service层的方法
        UserService service = new UserServiceImpl();
        boolean isRigth = service.isValidate("fender","123456");
        if(isRigth) {
            System.out.println("登录成功......");
        }else {
            System.out.println("登录失败......");
        }
    }
}